package com.dcw.lixb.designmode.interpreter;

/**
 * @author lixiaobin
 * @date 2020-07-28 14:24:02
 * @desc 描述信息
 */
public class TerminalExpression implements Expression {
    public TerminalExpression(String data) {
        this.data = data;
    }

    private String data;

    @Override
    public boolean interpret(String context) {
        if (context.contains(data)) {
            return true;
        }
        return false;
    }
}
